import java.util.Arrays;

public class EqualsDemo {

	public static void main(String[] args) {
		String[][] a = { { "Milo", "Nakov", "Martin", null },
				{ "milo", "nakov", "martin", null },
				{ "Milo", "Nakov", "Martin", null },
				{ "Milo", "Nakov", "Martin" } };

		System.out.println(Arrays.deepToString(a));
		System.out.println("equals([0], [2]) " + Arrays.equals(a[0], a[2])); // true
		System.out.println("[0].equals([2]) " + a[0].equals(a[2])); // false (bad usage)
		System.out.println("equals([0], [1]) " + Arrays.equals(a[0], a[1])); // false
		System.out.println("equals([2], [3]) " + Arrays.equals(a[2], a[3])); // false
	}

}
